package lesson2.com.games;

public class PlayingCard {
    
    public static final int SUIT_HEARTS=1;
    public static final int SUIT_CLUBS=2;
    public static final int SUIT_SPADES=3;
    public static final int SUIT_DIAMONDS=4;
    
    private int suit;
    private int denomination;
    
    public PlayingCard(int suit, int denomination){
        this.suit=suit;
        this.denomination=denomination;
    }

    public int getSuit() {
        return suit;
    }

    public int getDenomination() {
        return denomination;
    }
    
    public String getSuitText(){
        switch(suit){
            case SUIT_CLUBS: return "Clubs";
            case SUIT_SPADES: return "Spades";
            case SUIT_DIAMONDS: return "Diamonds";
            case SUIT_HEARTS: return "Hearts";
            default: return "Unknown suit";
        }
    }
}
